/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cuatroenraya.util;

import cuatroenraya.jugadores.Posicion;

/**
 *
 * @author Hernan
 */
 public class Estruc implements Comparable{

        public int heuristica;
        public String msj;
        public Posicion pinicial;
        public Posicion pfinal;

        public Estruc(int heuristica, String msj, Posicion pinicial, Posicion pfinal) {
            this.heuristica = heuristica;
            this.msj = msj;
            this.pinicial=pinicial;
            this.pfinal=pfinal;
        }
        public Estruc(int heuristica, String msj) {
            this.heuristica = heuristica;
            this.msj = msj;
        }

        public int compareTo(Object o) {
            Estruc aux = (Estruc) o;
            if (this.heuristica > aux.heuristica) {
                return 1;
            } else {
                if (this.heuristica < aux.heuristica) {
                    return -1;
                } else {
                    return 0;
                }
            }

        }

    public int getHeuristica() {
        return heuristica;
    }

    public void setHeuristica(int heuristica) {
        this.heuristica = heuristica;
    }
        
        
    }
